<?php
/**
 * Created by PhpStorm.
 * User: 毛文科
 * Date: 2019/5/21
 * Time: 18:01
 */
namespace app\admin\model;
use tp5er\Backup;

class Backups{
    public static function BeiFen($path=null){

    }
    public static function HuanYuan($sql=null){
        if(!$sql){
            return false;
        }
        if(!is_file($sql)){
            return false;
        }
        $db = new Backup();
        $bool = $db->setFile(['name'=>$sql,'part'=>1])->import(0);
        if($bool){
            return true;
        }else{
            return false;
        }
    }
}